package br.lotr.facade;

import java.util.List;

import br.lotr.dao.InsigniaDao;
import br.lotr.entidades.Insignia;

public class InsigniaFacade {
	
	private InsigniaDao dao;
	
	public InsigniaFacade() {
		dao = new InsigniaDao();
	}

	public boolean salva(Insignia insignia){
		return dao.salva(insignia);
	}
	
	public Insignia procura(long id){
		return dao.carrega(id);
	}
	
	public boolean remove(long id){
		return dao.remove(id);
	}
	
	@SuppressWarnings("unchecked")
	public List<Insignia> getLista(){
		return (List<Insignia>) dao.getLista();
	}
	
}
